package com.cjx.stars.common;

import com.cjx.stars.constant.FailMessage;
import lombok.Data;

import java.io.Serial;

/**
 * @author cjx
 * @description 自定义异常类
 * @createDate 2024/4/6 15:07
 **/
@Data
public class MyException extends RuntimeException{
    @Serial
    private static final long serialVersionUID = 23423423435L;

    private FailMessage failMessage;

    public MyException(FailMessage failMessage){
        this.failMessage = failMessage;
    }

    public MyException(){

    }


}
